﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _2021_6_21
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Unnamed_Click(object sender, EventArgs e)
        {
            if (account.Text != "" && password.Text != "")
            {
                Session["Account"] = account.Text;
                Response.Cookies["Pass"].Value = password.Text;
                Response.Cookies["Pass"].Expires = DateTime.Now.AddHours(5);
                Response.Redirect("Chatting.aspx");
            }
            else
            {
                warring.Text = "用户名或密码为空！";
            }

            
        }
    }
}